package com.hawk.eye.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hawk.eye.common.utils.Kv;
import com.hawk.eye.api.storage.dto.ServiceLogReqDTO;
import com.hawk.eye.server.domain.dto.resp.ServiceLogDTO;
import com.hawk.eye.api.storage.dto.ServiceLogRespDTO;
import com.hawk.eye.server.domain.po.AlarmDetailLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 【请填写功能名称】Mapper接口
 *
 * @author salad
 * @date 2023-10-23
 */
public interface AlarmDetailLogMapper extends BaseMapper<AlarmDetailLog> {

    IPage<ServiceLogDTO> page(IPage<ServiceLogRespDTO> page, @Param("params") ServiceLogReqDTO reqDTO);

    ServiceLogDTO detail(@Param("baseAlarmId") Long baseAlarmId);

    List<Kv> serviceErrorStatistics(@Param("params") Map<String, Object> params);

    List<Kv> errorType(@Param("params") Map<String, Object> params);

    List<Kv> serviceErrorTop(@Param("params") Map<String, Object> params);

    List<Kv> problemTop(@Param("params") Map<String, Object> params);

}
